#include "qlisteditor.h"

#include "qlisteditorwidget.h"

#include "../../minisplitter.h"

#include <QVBoxLayout>

QListEditor::QListEditor(QWidget *parent) :
    QWidget(parent),
    m_editor(new QListEditorWidget),
    m_attribute_widget(new QTreeWidget)
{
    QVBoxLayout *v=new QVBoxLayout;

    QSplitter *s=new QSplitter;

    s->addWidget(m_editor);
    s->addWidget(m_attribute_widget);
    s->setStretchFactor(0,1);
    s->setStretchFactor(1,0);
    s->setSizes(QList<int>()<<150<<150);

    v->addWidget(s);

    this->setLayout(v);
}
